home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d22 / getrom.arc / ROMSAVXT.C < prev    next >
Encoding:
C/C++ Source or Header  |  1987-09-30  |  354 b   |  29 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. main()
  4. {
  5. FILE *stream;
  6. unsigned int c;
  7. long x;
  8. char *d;
  9. /* starting address of xt rom */
  10. d = 0xf0006000;
  11. /* size of xt rom */
  12. x = 0xa000;
  13. /* open the file in binary mode! */
  14. stream = fopen("xtrom","wb");
  15. while (x > 0)
  16.     {
  17.     c = *d;
  18.     putc(c,stream);
  19.     *d++;
  20.     x--;
  21.     }
  22. fclose(stream);
  23. }
  24.  
  25.  
  26.  
  27.  
  28.  
  29.